<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="com.lb.bean.User"%>
<%@ page import="com.lb.bean.Admin"%>
<html>
    <head>
           
     
        <link href="style.css" rel="stylesheet" type="text/css" />
           <decorator:head/>
    </head>   
  <body>
<div id="top">
<img src="images/top.jpg" />

<hr>
<div id="version">学生专用留言板1.0 // 留言板//
<decorator:title></decorator:title></div>

<hr>
</div>
<div id="container">

    <div id="left">
    <fieldset>
<ul>

<li><img src="images/left-lu.gif" />        <a href="<s:url action="main"></s:url>">返回首页</a><hr></hr></li>
<%User user=(User)session.getAttribute("user"); 
if(user!=null){%>
<li><img src="images/left-lu.gif" />        <a href="<s:url action="logout"></s:url>">用户注销</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="<s:url action="UserMessage"><s:param name="accountName"><%=user.getAccountName() %></s:param></s:url>"> 个人中心</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="message.jsp">发布留言</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="userInfo.jsp">个人资料</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="reviseInfo.jsp"> 修改资料</a><hr></hr></li>

<%}else{ Admin admin=(Admin)session.getAttribute("admin");
if(admin!=null){%>
<li><img src="images/left-lu.gif" />        <a href="<s:url action="adminMessage"><s:param name="accountName"><%=admin.getName() %></s:param></s:url>"> 个人中心</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="adminMessage.jsp">发布留言</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="<s:url action="UserManager"></s:url>">用户管理</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="<s:url action="MessageManager"></s:url>">留言管理</a><hr></hr></li>
<li><img src="images/left-lu.gif" />         <a href="<s:url action="adminlogout"></s:url>">退出管理</a><hr></hr></li>
<%}  else{%>
<li><img src="images/left-lu.gif" />        <a href="login.jsp">用户登陆</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="register.jsp">用户注册</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="getPassword.jsp">找回密码</a><hr></hr></li>
<li><img src="images/left-lu.gif" />        <a href="adminlogin.jsp">后台登陆</a><hr></hr></li>
<% }} %>
</ul>
<img src="images/jianpan.jpg" />
</fieldset>
</div>


<div id="right">
<div id="biaoji">
<decorator:title></decorator:title></div>

<div id="content">
 <decorator:body></decorator:body>
 </div>
 </div>

</div>        
        
       

 <div id="footer">
<hr>
Designed by 芦彬, Thanks to Free CSS Templates！
</div>
    </body>
</html>

